#include<iostream>
using namespace std;

int main() {
	int i = 1;
	while (i != 1) {
		cout << i << endl;
	}
	do {
		cout << i << endl;
	} while (i != 1);
	return 0;
}